import axios from 'poros/http';

// const BASE_API = 'http://10.110.96.192:8030';
const BASE_API = '';

//获取线索商机转化率分页查
export const postTableList = data =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/leads/reportByPage`,
    method: 'post',
    data,
  });

//线索商机转化率导出
export const postExportList = data =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/leads/exportReport`,
    method: 'post',
    responseType: 'arraybuffer',
    hasInterceptors: true,
    data,
  });
